Belgelerim/ceng_491/implementation/doxygen/TraffEdu_Developers_Manual_Reference_ToSource/AnimationWindow.h

Go to the documentation of this file.
00001 
00006 class AnimationWindow{
00007 
00008 public: 
00009 
00010 double  physTime        ;
00011 double  deltaTime       ;
00017 double  throttle        ;
00018 double  brake           ;
00024 double  steering        ;
00029 AnimationWindow();
00030 Audio* audio_;
00037 void processInput(double delta, osg::ref_ptr<PhysicsEventHandler> ph);
00042 void setCamera();
00047 void setViewer();
00052 void setScene();
00058 osg::ref_ptr<osg::Group> getRoot();
00064 osg::ref_ptr<osgProducer::Viewer> getViewer();
00071 void createCarPhysics(Vehicle &vehicle,osg::ref_ptr<osg::PositionAttitudeTransform> transform );
00072 void realize();
00078 void addOtherPhysicalObject(TraffEduObject* object);
00084 void createConstantObjects(OSGWindows * osgWindows);
00089 void odeDraw();
00090 void exit(OSGWindows *);
00091 vector <CarPhysics *> getpCarPhys();
00092 vector <OtherPhysicalObjects *> getOtherPhysicalObjects();
00098 void followVehicle(OSGWindows * osgwindows);
00099 void setRotationArray(Vehicle *);
00105 void loadSkyBox(OSGWindows * osgwindows);
00112 void draw();
00118 void generateSeq(OSGWindows* window,TrafficLight * ptr);
00119 void deselectAll(OSGWindows* osgwind);
00120 private:
00125         vector <CarPhysics *>   pCarPhysVector; 
00126         vector <OtherPhysicalObjects *> otherPhysicalObjects;
00127         osg::Matrixd myCameraMatrix;
00128         osg::Matrixd cameraRotation;
00129     osg::Matrixd cameraTrans;
00134         osg::ref_ptr<osg::Group> root;
00139         osg::ref_ptr<osgProducer::Viewer> viewer;
00145         void createControlPoints(Vehicle * vehicle);
00151         void createRotationArray(Vehicle * vehicle);
00152                 
00153 };

Generated on Sun May 28 18:54:08 2006 for TraffEdu by  doxygen 1.4.6-NO